package li.service.impl;

import li.dao.PayMapper;
import li.dto.Payback;
import li.dto.TbUser;
import li.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PayServiceImpl implements PayService {
    @Autowired
    PayMapper pm;

    @Override
    public List<Payback> findUser7Pay(TbUser user) {
        return pm.selectPayByUserId(user.getId());
    }
}
